#include <stdio.h>
/**
 * @brief 计算三个数的最大值和最小值的差
 * 
 */
int diff(int,int,int);
int max(int, int,int);
int min(int,int,int);
int main(){
    int a, b, c;
    scanf("%d%d%d",&a,&b,&c);
    int res = diff(a,b,c);
    printf("Max-Min is %d",res);
}
int diff(int x,int y,int z){
    return max(x,y,z) - min(x,y,z);
}
/**
 * @brief 求最大值的函数 
 * 
 * @param x int
 * @param y int
 * @param z int
 * @return int 
 */
int max(int x,int y,int z){
    int res;
    res = x>y?x:y;
    return res>z?res:z;;
}
/**
 * @brief 求最小值
 * 
 * @param x 
 * @param y 
 * @param z 
 * @return int 
 */
int min(int x,int y,int z){
    int res;
    res = x>y?y:x;
    return res>z?z:res;
}